package ecommerce.factory.interfaces;

import java.util.ArrayList;

import ecommerce.exception.EcommerceException;
import ecommerce.to.CategoriaTO;

public interface CategoriaDAO {
    public void crear(CategoriaTO entidad) throws EcommerceException;
    public void modificar(CategoriaTO  entidad) throws EcommerceException;
    public void eliminar(int id) throws EcommerceException;
    public ArrayList<CategoriaTO > traerTodo() throws EcommerceException;
    public CategoriaTO  traerPorId(int id) throws EcommerceException;
}
